home *** CD-ROM | disk | FTP | other *** search
/ Champak 62 / Volume 62 - JOGO DISK .iso / Games / monstershop.swf / scripts / frame_1 / DoAction.as < prev   
Text File  |  2008-03-10  |  13KB  |  312 lines

  1. function ┬º\x04\x05┬º()
  2. {
  3.    set("\x03",2026 % 511 * 5);
  4.    return eval("\x03");
  5. }
  6. var ┬º\x01┬º = -2073 + "\x04\x05"();
  7. while(true)
  8. {
  9.    if(eval("\x01") == 392)
  10.    {
  11.       set("\x01",eval("\x01") - 96);
  12.       ┬º┬ºpush(true);
  13.    }
  14.    else if(eval("\x01") == 298)
  15.    {
  16.       set("\x01",eval("\x01") + 226);
  17.       ┬º┬ºpush(!function ┬º\x04\x05┬º()
  18.       {
  19.          set("\x03",2026 % 511 * 5);
  20.          return eval("\x03");
  21.       });
  22.    }
  23.    else if(eval("\x01") == 274)
  24.    {
  25.       set("\x01",eval("\x01") - 115);
  26.    }
  27.    else if(eval("\x01") == 530)
  28.    {
  29.       set("\x01",eval("\x01") - 371);
  30.    }
  31.    else if(eval("\x01") == 296)
  32.    {
  33.       set("\x01",eval("\x01") + 455);
  34.       if(function ┬º\x04\x05┬º()
  35.       {
  36.          set("\x03",2026 % 511 * 5);
  37.          return eval("\x03");
  38.       })
  39.       {
  40.          set("\x01",eval("\x01") - 221);
  41.       }
  42.    }
  43.    else if(eval("\x01") == 524)
  44.    {
  45.       set("\x01",eval("\x01") - 264);
  46.       if(function ┬º\x04\x05┬º()
  47.       {
  48.          set("\x03",2026 % 511 * 5);
  49.          return eval("\x03");
  50.       })
  51.       {
  52.          set("\x01",eval("\x01") + 243);
  53.       }
  54.    }
  55.    else
  56.    {
  57.       if(eval("\x01") == 751)
  58.       {
  59.          set("\x01",eval("\x01") - 221);
  60.          ┬º┬ºpush(┬º┬ºpop() > function ┬º\x04\x05┬º()
  61.          {
  62.             set("\x03",2026 % 511 * 5);
  63.             return eval("\x03");
  64.          });
  65.          break;
  66.       }
  67.       if(eval("\x01") == 555)
  68.       {
  69.          set("\x01",eval("\x01") - 257);
  70.          ┬º┬ºpush(eval(function ┬º\x04\x05┬º()
  71.          {
  72.             set("\x03",2026 % 511 * 5);
  73.             return eval("\x03");
  74.          }));
  75.       }
  76.       else if(eval("\x01") == 159)
  77.       {
  78.          set("\x01",eval("\x01") + 68);
  79.          ┬º┬ºpush("\x0f");
  80.          ┬º┬ºpush(1);
  81.       }
  82.       else if(eval("\x01") == 260)
  83.       {
  84.          set("\x01",eval("\x01") + 243);
  85.       }
  86.       else
  87.       {
  88.          if(eval("\x01") == 503)
  89.          {
  90.             set("\x01",eval("\x01") + 12);
  91.             getURL("FSCommand:fullscreen",false);
  92.             getURL("FSCommand:trapallkeys",true);
  93.             getURL("FSCommand:showmenu",false);
  94.             getURL("FSCommand:allowscale",false);
  95.             _root.gameonz = 0;
  96.             _root.udahan = 0;
  97.             _root.keyz = 0;
  98.             _root.bgmplaying = true;
  99.             _root.sndexport = true;
  100.             if(_root.manualz != 1)
  101.             {
  102.                var keyListener = new Object();
  103.                keyListener.onKeyUp = function()
  104.                {
  105.                   if(Key.getCode() == 32)
  106.                   {
  107.                      _root.keyz = 0;
  108.                   }
  109.                };
  110.                keyListener.onKeyDown = function()
  111.                {
  112.                   if(Key.getCode() == 32)
  113.                   {
  114.                      if(_root.pauss != 1 and _root.udahan != 1 and _root.keyz != 1)
  115.                      {
  116.                         _root.keyz = 1;
  117.                         if(_root.stunner != 1)
  118.                         {
  119.                            if(_root.deps._currentframe == 2 and _root.movl.dir == 2 and _root.nowcash != 0)
  120.                            {
  121.                               _root.skor += _root.nowcash;
  122.                               _root.nowcash = 0;
  123.                               _root.nohand();
  124.                               _root.sounder(_root.efek3,"gps");
  125.                               _root.deps.desk.play();
  126.                            }
  127.                            else if(_root.hitbox != 0 and _root.handy != 1 and _root.skor >= _root.harga[_root.hitbox])
  128.                            {
  129.                               _root.sounder(_root.efe,"goods");
  130.                               _root.handy = 1;
  131.                               _root.hand.attachMovie("brg1","brg",2);
  132.                               _root.hand.brg.gotoAndStop(_root.hitbox);
  133.                               _root.skor -= _root.harga[_root.hitbox];
  134.                               _root.nowhand = _root.hitbox;
  135.                               _root["k" + _root.nowhand].play();
  136.                            }
  137.                            else if(_root.hitbox != 0 and (_root.handy == 1 or _root.skor < _root.harga[_root.hitbox]))
  138.                            {
  139.                               _root.sounder(_root.efe,"wrg");
  140.                               _root.hint.hinttext.gotoAndStop(1);
  141.                               _root.hint.play();
  142.                            }
  143.                            else if(_root.nowserv != 0 and _root.movl.dir == 2 and _root["m" + _root.nowserv].asking != 1 and _root.meja[_root.nowserv] != 0 and _root["m" + _root.nowserv].dead != 1)
  144.                            {
  145.                               _root.sounder(_root.efe,"buba");
  146.                               ip = _root.nowserv;
  147.                               _root["m" + ip].asking = 1;
  148.                               _root["m" + ip].pp.attachMovie("bub","bub",2);
  149.                               _root["m" + ip].pp.bub._y -= 75;
  150.                               if(_root["m" + ip].pesanan1 == 0 or _root["m" + ip].pesanan2 == 0)
  151.                               {
  152.                                  _root["m" + ip].tipe = 1;
  153.                                  _root["m" + ip].pp.bub.attachMovie("brg1","brg",2);
  154.                                  _root["m" + ip].pp.bub.brg.gotoAndStop(_root["m" + ip].pesanan1);
  155.                               }
  156.                               else
  157.                               {
  158.                                  _root["m" + ip].tipe = 2;
  159.                                  _root["m" + ip].pp.bub.attachMovie("brg" + _root["m" + ip].pesanan1 + "_" + _root["m" + ip].pesanan2,"brg",2);
  160.                               }
  161.                            }
  162.                            else if(_root.nowserv != 0 and _root.movl.dir == 2 and _root["m" + _root.nowserv].asking != 0 and _root.meja[_root.nowserv] != 0 and _root["m" + _root.nowserv].dead != 1)
  163.                            {
  164.                               ip = _root.nowserv;
  165.                               if(_root["m" + ip].tipe == 1)
  166.                               {
  167.                                  if(_root["m" + ip].pesanan1 == _root.nowhand)
  168.                                  {
  169.                                     ap4 = _root.kos["meters" + ip].hp * _root.bnsx[_root.kos["meters" + ip].codec];
  170.                                     _root.nowcash = _root.untung[_root["m" + ip].pesanan1] + ap4;
  171.                                     _root.getmoney();
  172.                                     _root.remorang(ip);
  173.                                  }
  174.                                  else if(_root.handy != 0 and _root.nowcash == 0)
  175.                                  {
  176.                                     _root.salahan(ip);
  177.                                  }
  178.                               }
  179.                               else if(_root["m" + ip].pesanan3 == _root.nowhand)
  180.                               {
  181.                                  ap4 = _root.kos["meters" + ip].hp * _root.bnsx[_root.kos["meters" + ip].codec];
  182.                                  bn = 0;
  183.                                  switch(_root["m" + ip].pesanan1)
  184.                                  {
  185.                                     case 2:
  186.                                        bn = 5;
  187.                                        break;
  188.                                     case 4:
  189.                                        bn = 20;
  190.                                        break;
  191.                                     case 6:
  192.                                        bn = 15;
  193.                                  }
  194.                                  ap = _root.untung[_root["m" + ip].pesanan1] - _root.harga[_root["m" + ip].pesanan1];
  195.                                  ap2 = _root.untung[_root["m" + ip].pesanan2] - _root.harga[_root["m" + ip].pesanan2];
  196.                                  ap3 = (ap + ap2) * 4 + bn + ap4;
  197.                                  _root.handcom = 0;
  198.                                  _root.combin = 0;
  199.                                  _root.nowcash = ap3;
  200.                                  _root.getmoney();
  201.                                  _root.remorang(ip);
  202.                               }
  203.                               else if(_root.handy != 0 and _root.nowcash == 0)
  204.                               {
  205.                                  _root.salahan(ip);
  206.                               }
  207.                            }
  208.                            else if(_root.ove._currentframe == 2 and _root.handy == 1 and _root.movl.dir == 2 and _root.jmlcom != 2 and _root.produce != 1 and _root.combin != 1)
  209.                            {
  210.                               _root.sounder(_root.efek3,"oven");
  211.                               _root.jmlcom = _root.jmlcom + 1;
  212.                               _root["com" + _root.jmlcom] = _root.nowhand;
  213.                               _root["oven" + _root.jmlcom].attachMovie("brg1","brg",2);
  214.                               _root["oven" + _root.jmlcom].brg.gotoAndStop(_root.nowhand);
  215.                               if(_root.jmlcom == 1)
  216.                               {
  217.                                  _root.ove.ovein.item1.gotoAndStop(_root.nowhand + 1);
  218.                               }
  219.                               if(_root.jmlcom == 2)
  220.                               {
  221.                                  _root.ove.ind.gotoAndPlay("ready");
  222.                                  _root.ove.ovein.item2.gotoAndStop(_root.nowhand + 1);
  223.                                  _root.hint.hinttext.gotoAndStop(3);
  224.                                  _root.hint.play();
  225.                               }
  226.                               _root.nohand();
  227.                            }
  228.                            else if(_root.ove._currentframe == 2 and _root.movl.dir == 2 and _root.jmlcom == 2 and _root.combin != 1 and _root.produce != 1)
  229.                            {
  230.                               _root.oven1._visible = 0;
  231.                               _root.oven2._visible = 0;
  232.                               _root.remm._visible = 0;
  233.                               _root.jmlcom = 0;
  234.                               _root.produce = 1;
  235.                               _root.ove.mt.go = 1;
  236.                               _root.ove.ovein.gotoAndStop("on");
  237.                               _root.ove.ind.gotoAndStop("off");
  238.                            }
  239.                            else if(_root.ove._currentframe == 2 and _root.movl.dir == 2 and _root.handy != 1 and _root.combin == 1 and _root.produce != 1)
  240.                            {
  241.                               _root.oven1.brg.removeMovieClip();
  242.                               _root.sounder(_root.efe,"goods");
  243.                               _root.nowhand = _root.comboitem;
  244.                               _root.handy = 1;
  245.                               _root.handcom = 1;
  246.                               _root.hand.attachMovie("brg" + _root.com1 + "_" + _root.com2,"brg",2);
  247.                            }
  248.                            else if(_root.ove._currentframe == 2 and _root.movl.dir == 2 and _root.handy == 1 and _root.combin == 1 and _root.produce != 1)
  249.                            {
  250.                               _root.sounder(_root.efe,"wrg");
  251.                               _root.hint.hinttext.gotoAndStop(2);
  252.                               _root.hint.play();
  253.                            }
  254.                         }
  255.                      }
  256.                   }
  257.                };
  258.                Key.addListener(keyListener);
  259.                _root.manualz = 1;
  260.             }
  261.             _root.bgm = new Sound();
  262.             _root.efe = new Sound();
  263.             _root.efek2 = new Sound();
  264.             _root.efek3 = new Sound();
  265.             _root.efek4 = new Sound();
  266.             _root.efek5 = new Sound();
  267.             _root.efek6 = new Sound();
  268.             _root.efek7 = new Sound();
  269.             _root.efek8 = new Sound();
  270.             _root.bgm.setVolume(80);
  271.             _root.bgm.onSoundComplete = function()
  272.             {
  273.                _root.bgm.start();
  274.             };
  275.             _root.pauss = 0;
  276.             _root.harga = [0,10,10,25,15,35,20,30,25];
  277.             _root.untung = [0,20,20,60,30,80,40,70,50];
  278.             _root.angryx = [0,24,20,16,14,12,10];
  279.             _root.price = [0,80,120,280,380,0,320,450,0,60,320];
  280.             _root.bnsx = [0,1,2,3,4,3,5];
  281.             _root.rgoal = [0,300,400,480,550,700,850,1000,1750,2500,3500];
  282.             _root.timemnt = [0,1,1,2,2,2,3,4,3,4,5];
  283.             _root.maxcustomers = [0,2,2,3,3,4,3,5,4,5,5];
  284.             break;
  285.          }
  286.          if(eval("\x01") == 204)
  287.          {
  288.             set("\x01",eval("\x01") + 351);
  289.             ┬º┬ºpush("\x0f");
  290.          }
  291.          else
  292.          {
  293.             if(eval("\x01") != 227)
  294.             {
  295.                if(eval("\x01") == 515)
  296.                {
  297.                   set("\x01",eval("\x01") - 515);
  298.                   break;
  299.                }
  300.                break;
  301.             }
  302.             set("\x01",eval("\x01") - 23);
  303.             var ┬º┬ºpop() = function ┬º\x04\x05┬º()
  304.             {
  305.                set("\x03",2026 % 511 * 5);
  306.                return eval("\x03");
  307.             };
  308.          }
  309.       }
  310.    }
  311. }
  312.